import instance from '../plugins/http.js'

export function api_login(username, password) {
  console.log(this)
  return instance.post('/admin/login', {
    username: username,
    password: password
  })
}
//这是注销登出
export function api_logout() {
  console.log(this)
  return instance.post('/admin/logout')
}

//获取用户信息
export function api_info() {
  return instance.get('/admin/info')
}
